<?php
/**
 * @package		Joomla.Site
 * @subpackage	mod_articles_category
 * @copyright	Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license		GNU General Public License version 2 or later; see LICENSE.txt
 */

// no direct access
defined('_JEXEC') or die;
?>

<div class="gridContent">
                    <div class="title2 fl">
                        <i class="icon3"></i>
                        <span class="text"><?php echo $module->title ?></span>
                        <i class="icon3"></i>
                    </div>
                    
                    <div class="gridC1">
                    
                    <?php foreach ($list as $item) : ?>
                    
                                        <?php
                                                            //var_dump($item);
                                                            $disc = json_decode($item->metadata);
                                                            $img = json_decode($item->images);
                                                            //echo $disc->rights;
                                        ?>
                    
                        <div class="gItem">
                            <a href="<?php echo $item->link; ?>"><img src="<?php echo JURI::base().$img->image_intro ?>" alt="" /></a>
                            <h3><a href="<?php echo $item->link; ?>"><?php echo $item->title ?></a></h3>
                            <p>
                                        <?php echo JHtml::_('string.truncate', ($disc->rights), 120); ?>
                            </p>
                            <a href="<?php echo $item->link; ?>" class="more">READ MORE</a>
                        </div>
                    <?php endforeach; ?>
                    
                    </div>
                    
                    
               </div>
